using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;

namespace Sale_and_manage
{
    public partial class frmAddGuest : DevComponents.DotNetBar.Metro.MetroForm
    {
        public frmAddGuest()
        {
            InitializeComponent();
        }

        protected override bool ProcessDialogKey(Keys keyData)
        {
            switch (keyData)
            {
                case Keys.F1:
                    {
                        btnAddGuest_Click(null, null);
                        break;
                    }
                case Keys.F2:
                    {
                        btnClean_Click(null, null);
                        break;
                    }
            }
            return base.ProcessDialogKey(keyData);
        }

        private void buttonX3_Click(object sender, EventArgs e)
        {
            this.Close();            
        }

        private void btnAddGuest_Click(object sender, EventArgs e)
        {

        }

        private void btnClean_Click(object sender, EventArgs e)
        {

        }

        private void txtGuestID_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (!Char.IsDigit(e.KeyChar) && !Char.IsControl(e.KeyChar))
            {
                e.Handled = true;
            }
        }


        
    }
}